package org.example.lease.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import org.apache.ibatis.annotations.Param;
import org.example.lease.model.entities.ViewAppointment;
import org.example.lease.vo.appointment.AppointmentQueryVo;
import org.example.lease.vo.appointment.AppointmentVo;

/**
 * @author 宋孟林
 * @description
 * @date: 2025/5/12 16:52
 */
public interface ViewAppointmentMapper extends BaseMapper<ViewAppointment> {
    /**
     * 根据用户名和电话和公寓所在省份和地区等信息查询预约Vo
     *
     * @param page               page
     * @param appointmentQueryVo 公寓查询的条件
     * @return page ---- appointmentVo
     */
    IPage<AppointmentVo> selectAppointmentVoByQuery(@Param("page") IPage<AppointmentVo> page,
                                                    @Param("queryVo") AppointmentQueryVo appointmentQueryVo);

}




